package com.weitu.occupationalHealth.hazardFactor.service.impl;

import com.weitu.occupationalHealth.hazardFactor.entity.HazardFactor;
import com.weitu.occupationalHealth.hazardFactor.mapper.HazardFactorMapper;
import com.weitu.occupationalHealth.hazardFactor.service.HazardFactorService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HazardFactorServiceImpl implements HazardFactorService {
    @Autowired
    private HazardFactorMapper hazardFactorMapper;

    @Override
    public Map selectById(String id) {
        return this.hazardFactorMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return this.hazardFactorMapper.deleteById(id);
    }

    @Override
    public int updateByIdSelective(Map map) {
        return this.hazardFactorMapper.updateByIdSelective(map);
    }

    @Override
    public int insertSelective(Map map) {
        return this.hazardFactorMapper.insertSelective(map);
    }

    @Override
    public List<Map> selectAllHazardFactor(Map map) {
        return hazardFactorMapper.selectAllHazardFactor(map);
    }

    @Override
    public int selectHazardFactorCount(Map map) {
        return hazardFactorMapper.selectHazardFactorCount(map);
    }

    @Override
    public List<Map> selectFactorComboData(String name) {
        return hazardFactorMapper.selectFactorComboData(name);
    }
}